package Lab05.Q6;

public class NotExecutableFile extends File {

    public NotExecutableFile(String name) {
        super(name);
    }

    public void executeCommand() {
        System.out.println("请使用合适打开方式");
    }

    public void executeCommand(File file) {
        System.out.println("Executing!\n" + this.getContent());
    }

    public String toString() {
        return this.getName()+"\t"+this.getPath()+"\t"+this.getTime()+"\t"+this.getStorage()+" \n";
    }
}
